package com.demo.tuling.controller;

import com.demo.tuling.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author tyy
 * @Description TODO
 * @Since 2022/2/26
 */
@RestController
public class IndexController {

    @Resource
    private UserService userService;

    @RequestMapping("/savetUser")
    public String savetUser(){
        userService.test();
        return "savetUser";
    }

    @RequestMapping
    public String index(){
        return "index";
    }
}
